package com.ywc.tools.contentprovide;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.ywc.tools.R;

public class ProvideActivity extends AppCompatActivity{

    private ProvideFragment1 provideFragment1;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_provide);
        init();
    }

    private void init() {
        ((TextView) findViewById(R.id.bar_center)).setText("内容提供者");
        provideFragment1 = new ProvideFragment1();
        getSupportFragmentManager().beginTransaction().add(R.id.provideFramgent,provideFragment1).commit();
    }


    @Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
        provideFragment1.onRequestPermissionsResult(requestCode, permissions, grantResults);
    }

}
